package com.best.developer.myarchitecturedemo;

import android.app.Application;

import com.best.developer.myarchitecturedemo.data.local.db.AppDatabaseManager;
import com.best.developer.myarchitecturedemo.utils.Consts;
import com.facebook.stetho.Stetho;


public class MyApplication extends Application {

    private static MyApplication INSTANCE = null;

    public static MyApplication getInstance() {
        return INSTANCE;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        INSTANCE = this;
        AppDatabaseManager.getInstance().createDB(this);
        if (Consts.DEBUG) {
            Stetho.initializeWithDefaults(this);
        }
    }
}
